#ifndef XABSTRACTASYNTAXTREEVARIABLE_H
#define XABSTRACTASYNTAXTREEVARIABLE_H
#include <xscript/xabstractsyntaxtree.h>

class XAbstractSyntaxTreeVariable : public XAbstractSyntaxTree {
  public:
    XAbstractSyntaxTreeVariable(XTokenPtr inputToken);
  public:
    XAbstractSyntaxTreeType getTreeType()const override {return XAbstractSyntaxTreeType_Variable;}
    bool invoke(std::shared_ptr<XVariableTable> table)override;
    bool isFilled()const override {return children.size() == 1;}
  private:
};

#endif // XABSTRACTASYNTAXTREEVARIABLE_H
